/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function ReviewValidation(){
    var search = document.getElementById("postArea").value;
    var isValid = 1;
    var and = "AND";
    var or = "OR";
    
    
    if(search.indexOf("<") > -1)
        isValid = 0;
    else if(search.indexOf(">") > -1)
        isValid = 0;
    else if(search.indexOf("\"") > -1)
        isValid = 0;
    else if(search.indexOf("/")> -1)
        isValid = 0;
    else if(search.indexOf("=") > -1)
        isValid = 0;
    else if(search.indexOf("|") > -1)
        isValid = 0;

    
    if(isValid == 1){
        return true;
        
    }
    else{
        document.getElementById("errComment").innerHTML = 'Comment input is not valid';
//        document.write('<span class="errLog">Login input is invalid. Special characters are not allowed.</span>');
        return false;
    }
}

